/* 设置根元素字体大小，1rem = 20px */
html {
    font-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%); */
    min-height: 100vh;
    display: flex;
    /* justify-content: center; */
    /* align-items: center; */
    padding: 0.8rem;
    touch-action: manipulation;
}

.phone-mockup {
    width: 100%;
    max-width: 18rem;
    background: #fff;
    border-radius: .6rem;
    overflow: hidden;
    
    border: 0;
    position: relative;
}

.status-bar {
    height: 1.2rem;
    background: #222;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.8rem;
    font-size: 0.6rem;
}

.time {
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 0.4rem;
}

/* 修改1: 轮播容器设置固定高度和过渡 */
.carousel-container {
    position: relative;
    /* overflow: hidden; */
    width: 100%;
    height: 6.1rem; /* 初始高度 */
    transition: height 0.4s ease; /* 添加高度过渡 */
}

/* 修改2: 移除slides-wrapper的高度过渡 */
.slides-wrapper {
    border-radius: .8rem;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 移除height过渡 */
    will-change: transform; /* 移除height */
}

.slide {
    flex: 0 0 100%;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    position: relative;
}

.slide-1 {
    height: 7.15rem;
    /* background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 100%); */
    border-radius: .8rem;
}

.slide-2 {
    height: 16.6rem;
    /* background: linear-gradient(45deg, #a1c4fd 0%, #c2e9fb 100%); */
    border-radius: .8rem;
    border: none ;
    outline: none !important;
    box-shadow: none !important;
    border: 0!important;
}

/* 小圆点指示器样式 */
.indicators {
    position: absolute;
    bottom: 0.3rem;
    left: -0.3rem;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    z-index: 10;
    
}
.slides-wrapper,
.slide,
.slide-1,
.slide-2 {
    outline: none !important;
}

.indicator {
    width: 0.5rem;
    height: .2rem;
    border-radius: 10%;
    background: #eeeeee;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 -9px 0 0;
    /* box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.2); */
    color: #ffe501;
}

.indicator.active {
    background: #ffe501;
    transform: scaleX(1.8);
    /* box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.8); */
}

.swipe-hint {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 0.8rem;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(0.2rem);
    -webkit-backdrop-filter: blur(0.2rem);
}

.home-indicator {
    height: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: #eeeeee;
    padding-bottom: 0.3rem;
}

.home-bar {
    width: 40%;
    height: 0.25rem;
    background: #000;
    border-radius: 0.15rem;
    opacity: 0.3;
}

/* 图标样式 */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: cover;
    vertical-align: middle;
}

.icon-signal {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 16c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm6-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM6 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm12-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM6 4c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z'/%3E%3C/svg%3E");
}

.icon-wifi {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 21c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0-16c4.2 0 8 3.2 8.5 7.4l-1.4-1.4C18.4 9.2 15.5 7 12 7s-6.4 2.2-7.1 5.4l-1.4 1.4C4 8.2 7.8 5 12 5zm0 4c2.8 0 5.3 1.7 6.5 4.2l-1.4-1.4C16.3 11.5 14.3 10 12 10s-4.3 1.5-5.1 3.8l-1.4 1.4C6.7 10.7 9.2 9 12 9zm3 7.5c-.3 0-.6.2-.8.4l-1.5 1.9c-.3.4-.9.4-1.2 0l-1.5-1.9c-.2-.3-.5-.4-.8-.4-.7 0-1.2.6-1.2 1.2 0 .3.1.6.3.8l1.5 1.9c.7.9 2 .9 2.7 0l1.5-1.9c.2-.2.3-.5.3-.8 0-.6-.5-1.1-1.2-1.1z'/%3E%3C/svg%3E");
}

.icon-battery {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17 5v16c0 .55-.45 1-1 1H8c-.55 0-1-.45-1-1V5c0-.55.45-1 1-1h8c.55 0 1 .45 1 1zm-1 1H8v14h8V6zm4-2v16c0 .55-.45 1-1 1-2.76 0-5-2.24-5-5v-8c0-2.76 2.24-5 5-5 .55 0 1 .45 1 1z'/%3E%3C/svg%3E");
    width: 1.2em;
}

.icon-arrows {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z'/%3E%3C/svg%3E");
    width: 1.2em;
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.slide-number {
    animation: pulse 3s infinite ease-in-out;
}

/* 响应式调整 */
@media (max-width: 20rem) {
    html {
        font-size: 18px;
    }
}